package com.jz.mx.controller;


import com.jz.mx.service.SfproviderregService;
import com.jz.netthings.exception.AdscmSystemException;
import com.jz.netthings.support.SimpleCoreResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yyy
 * @since 2019-08-19
 */
@RestController
@RequestMapping("/adscm/sync/gjzxx")
public class GjzxxController {

    @Autowired
    SfproviderregService sfproviderregService;

    @RequestMapping("/syncRegMsg")
    public SimpleCoreResponse syncRegMsg() throws AdscmSystemException {

        sfproviderregService.syncRegMsg();
        return new SimpleCoreResponse("200","同步成功" ,null);
    }
    @RequestMapping("/syncCollMsg")
    public SimpleCoreResponse syncCollMsg() throws AdscmSystemException {

        sfproviderregService.syncCollMsg();
        return new SimpleCoreResponse("200","同步成功" ,null);
    }

}

